import request from '@/utils/request'

// 查询专业资质列表
export function listQualification(query) {
  return request({
    url: '/qualification/qualification/list',
    method: 'get',
    params: query
  })
}

// 查询专业资质详细
export function getQualification(id) {
  return request({
    url: '/qualification/qualification/' + id,
    method: 'get'
  })
}

// 新增专业资质
export function addQualification(data) {
  return request({
    url: '/qualification/qualification',
    method: 'post',
    data: data
  })
}

// 修改专业资质
export function updateQualification(data) {
  return request({
    url: '/add/add/update8',
    method: 'put',
    data: data
  })
}

// 删除专业资质
export function delQualification(id) {
  return request({
    url: '/qualification/qualification/' + id,
    method: 'delete'
  })
}

// 批量添加
export function addQualificationList(data) {
  return request({
    url: '/add/add/qualification',
    method: 'post',
    data: data
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
